bitkeeper revision 1.1613 (429c6e1eexBYav7WpRxH77Hcyh4PLQ)
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Tue, 31 May 2005 14:01:02 +0000 (14:01 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Tue, 31 May 2005 14:01:02 +0000 (14:01 +0000)
XendDomainInfo.py:
  Should use int(cpu) here to test if it's valid.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
tools/python/xen/xend/XendDomainInfo.py

index 8e118da4e882168aaea1206b0e5742e23de318e3..4d05822e5d693a8555ff98eca23cdb87fa616ba1 100644 (file)
@@ -555,7 +555,7 @@ class XendDomainInfo:
         if self.memory is None:
             raise VmError('missing memory size')
         cpu = sxp.child_value(config, 'cpu')
-        if self.recreate and self.dom and cpu is not None and cpu >= 0:
+        if self.recreate and self.dom and cpu is not None and int(cpu) >= 0:
             xc.domain_pincpu(self.dom, 0, 1<<int(cpu))
         try:
             image = sxp.child_value(self.config, 'image')